package com.ml.mall.mapper;

import com.ml.mall.bean.req.admin.coupon.CouponQueryOneReq;
import com.ml.mall.bean.req.admin.coupon.CouponQueryPageReq;
import com.ml.mall.bean.req.admin.coupon.CouponQueryUseNumReq;
import com.ml.mall.bean.res.order.OrderQueryPageRes;
import com.ml.mall.bean.res.supplier.SupplierVariantQueryPageRes;
import com.ml.mall.bean.vo.DateValueVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by kyyang on 2021/6/8 23:01
 */
@Repository
public interface AnalyticsCouponMapper {
    //查询时间范围内优惠券使用数量
    List<DateValueVO> selectCouponUseNum(CouponQueryUseNumReq req);

    //查询优惠券相关的订单
    List<OrderQueryPageRes> selectOrderPage(CouponQueryPageReq req);

    //查询优惠券相关的订单数量
    int selectCountOrderPage(CouponQueryPageReq req);
}
